home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat3
/
libelfutil
/
xlate_pro_disk_next_block.z
/
xlate_pro_disk_next_block
Wrap
Text File
|
1998-10-30
|
6KB
|
132 lines
XXXXLLLLAAAATTTTEEEE____PPPPRRRROOOO____NNNNEEEEXXXXTTTT____BBBBLLLLOOOOCCCCKKKK((((3333EEEE)))) XXXXLLLLAAAATTTTEEEE____PPPPRRRROOOO____NNNNEEEEXXXXTTTT____BBBBLLLLOOOOCCCCKKKK((((3333EEEE))))
NNNNAAAAMMMMEEEE
_xxxx_llll_aaaa_tttt_eeee______pppp_rrrr_oooo______dddd_iiii_ssss_kkkk______nnnn_eeee_xxxx_tttt______bbbb_llll_oooo_cccc_kkkk - get translation byte stream pointers
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
_####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_eeee_llll_ffff_...._hhhh_>>>>
_####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_llll_iiii_bbbb_eeee_llll_ffff_...._hhhh_>>>>
_####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_dddd_wwww_aaaa_rrrr_ffff_...._hhhh_>>>>
_####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_llll_iiii_bbbb_dddd_wwww_aaaa_rrrr_ffff_...._hhhh_>>>>
_####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_cccc_mmmm_pppp_llll_rrrr_ssss_////_xxxx_llll_aaaa_tttt_eeee_...._hhhh_>>>>
_####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_llll_iiii_bbbb_XXXX_llll_aaaa_tttt_eeee_...._hhhh_>>>>
_iiii_nnnn_tttt _xxxx_llll_aaaa_tttt_eeee______pppp_rrrr_oooo______dddd_iiii_ssss_kkkk______nnnn_eeee_xxxx_tttt______bbbb_llll_oooo_cccc_kkkk_((((_xxxx_llll_aaaa_tttt_eeee______tttt_aaaa_bbbb_llll_eeee______pppp_rrrr_oooo _pppp_rrrr_oooo______tttt_aaaa_bbbb_llll_eeee______pppp_tttt_rrrr_,,,,
_cccc_hhhh_aaaa_rrrr _****_****_dddd_aaaa_tttt_aaaa_,,,,
_EEEE_llll_ffff_6666_4444______XXXX_wwww_oooo_rrrr_dddd _****_dddd_aaaa_tttt_aaaa______ssss_iiii_zzzz_eeee
_))))_;;;;
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
This function gets pointers to the blocks making up the stream of data.
The xlate functions do not write the stream to disk. Typically the
transformation-tool will use _l_i_b_e_l_f to write the bytes to disk.
_x_l_a_t_e__p_r_o__d_i_s_k__n_e_x_t__b_l_o_c_k gets the contents and size of the next block
thru the pointer arguments.
_p_r_o__t_a_b_l_e__p_t_r must be a valid open producer translate table handle and
_x_l_a_t_e__p_r_o__d_i_s_k__h_e_a_d_e_r must have been called to create the byte stream and
count the number of blocks..
It is essential that if the data stream gets written to a data file (an
Elf file) for later reading that the data stream be given a proper Elf
d_align of 4 for a 32-bit stream and 8 for a 64-bit stream.
_d_a_t_a The pointed at memory is set to a pointer to a set of bytes which
form part of the translation table byte stream. The caller must
_f_r_e_e(3) the memory pointed-to.
_d_a_t_a__s_i_z_e
The pointed at memory is set to the number of bytes in this block
of the byte stream.
For an example of use, see _x_l_a_t_e__p_r_o__d_i_s_k__h_e_a_d_e_r(3) and _l_i_b_e_l_f_u_t_i_l(5).
FFFFIIIILLLLEEEESSSS
/usr/include/libXlate.h
/usr/include/cmplrs/xlate.h
/usr/include/elf.h
/usr/include/dwarf.h
/usr/include/libdwarf.h
/usr/lib/libelfutil.a
PPPPaaaaggggeeee 1111
XXXXLLLLAAAATTTTEEEE____PPPPRRRROOOO____NNNNEEEEXXXXTTTT____BBBBLLLLOOOOCCCCKKKK((((3333EEEE)))) XXXXLLLLAAAATTTTEEEE____PPPPRRRROOOO____NNNNEEEEXXXXTTTT____BBBBLLLLOOOOCCCCKKKK((((3333EEEE))))
DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
This function returns XLATE_TB_STATUS_NO_ERROR (0) on success. In case
of error, a negative number is returned indicating the error. In case of
error nothing is returned thru the pointer arguments.
Error codes which may be returned:
_X_L_A_T_E__T_B__S_T_A_T_U_S__I_N_V_A_L_I_D__T_A_B_L_E
means that that the _t_a_b_l_e is not a valid open producer handle.
_X_L_A_T_E__T_B__S_T_A_T_U_S__B_L_O_C_K__R_E_Q__S_E_Q__E_R_R
means that _x_l_a_t_e__p_r_o__d_i_s_k__h_e_a_d_e_r has not been called yet, and it
must be called before calling _x_l_a_t_e__p_r_o__d_i_s_k__n_e_x_t__b_l_o_c_k.
_X_L_A_T_E__T_B__S_T_A_T_U_S__A_L_R_E_A_D_Y__D_O_N_E
means that _x_l_a_t_e__p_r_o__d_i_s_k__n_e_x_t__b_l_o_c_k was called more times than
it should have been since the last call to _x_l_a_t_e__p_r_o__d_i_s_k__h_e_a_d_e_r.
_X_L_A_T_E__T_B__S_T_A_T_U_S__A_L_L_O_C__F_A_I_L
means _m_a_l_l_o_c failed trying to allocate memory for the stream
bytes.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
libelfutil(5), xlate(4), xlate_pro_init(3), xlate_pro_finish(3),
xlate_pro_disk_next_block(3),
PPPPaaaaggggeeee 2222